﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ccit.ClassLibrary;

namespace Ccit.SysPlat.Organ
{
    /// <summary>
    /// Description: 系统平台组织机构 -> 部门管理框架页面
    /// Author: tim 2010-01-29
    /// </summary>
    public partial class sys_dept_frame : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                _hidOrganId.Value = (null != Request.QueryString["organId"]) ? Request.QueryString["organId"].ToString() : "1";
                if (string.IsNullOrEmpty(_hidOrganId.Value))
                {
                    MsLoginUser loginUser = Session["LogUserInfo"] as MsLoginUser;
                    _hidOrganId.Value = loginUser.organId;
                    loginUser = null;
                }
            }
        }
    }
}
